// nullable values should be checked explicitly against null or undefined
function getNum(): number | undefined {
  return undefined;
}

const num: number | undefined = getNum();
if (num !== undefined) {
  console.log('num is defined');
}

function getStr(): string | null {
  return 'null';
}

const str: string | null = getStr();
if (str !== null) {
  console.log('str is not empty');
}
//github
true ? 'a' : 'b';

if (false) {
}

while (true) {}
for (; false; ) {}
!true;
false || 123;
true && 'foo';
!(false || true);
true && false ? true : false;
(false && true) || false;
(false && true) || [];
(false && 1) || (true && 2);

if ('') {
}

while ('x') {}
for (; ''; ) {}
('' && '1') || x;
while (1n) {}
for (; Infinity; ) {}
(0 / 0 && 1 + 2) || x;

interface Options {
  readonly enableSomething?: true;
}
